//
//  ProjectTimeCell.swift
//  HuaYun
//
//  Created by enghou on 2019/1/11.
//  Copyright © 2019 xyxorigation. All rights reserved.
//

import UIKit

class ProjectTimeCell: UITableViewCell {

    var _model: JSON?
    var model: JSON?{
        get{
            return _model
        }
        set{
            if (_model != newValue) {
                _model = newValue
                self.descLabel.text = _model?["projectName"].string
                self.yearMonthLabel.text = _model?["month"].string
                self.bgMansCountLabel.text = _model?["dailyNum"].string
                self.approvaledTimeLabel.text = _model?["approvalDoneWorkTime"].string
                self.notApprovalTimeLabel.text = _model?["approvalUndoWorkTime"].string
            }
        }
    }
    @IBOutlet weak var descLabel: UILabel!
    @IBOutlet weak var yearMonthLabel: UILabel!
    @IBOutlet weak var bgMansCountLabel: UILabel!
    @IBOutlet weak var approvaledTimeLabel: UILabel!
    @IBOutlet weak var notApprovalTimeLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        self.contentView.backgroundColor = UIColor.tableSeparator
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
